<?php
/**
 * eBay Label Printing Program Backoffice Menu Form Class 
 * This is a Form Class , it provide Backoffice Menu form
 * @package  eBayLabelPrinter
 * @category Forms
 * @author   Norman Dong <norman.dong@hotmail.com>
 * @version  Initial
 * @copyright LeadCasket.com
 * @link     www.leadcasket.com
 * @license  Commercial
 * @todo   At the moment , this is NO validuator at all , I assue all input is correct
 */
class Form_System_Backofficemenu extends Zend_Form
{
	/**
	 * Form construct function 
	 * Form have The following Elements 
	 * Section Name & Position  
	 */
	
    public function __construct($options = null){

		parent::__construct($options);
		
		$backofficeMenuID = new Zend_Form_Element_Text('id_backoffice_menu');
		$backofficeMenuID->setLabel('Backoffice Menu ID');
		
		$backofficeMenuParentID = new Zend_Form_Element_Text('id_parent_backoffice_menu');
		$backofficeMenuParentID->setLabel('Menu Parent ID');
		
		$backofficeMenuOrder = new Zend_Form_Element_Text('order_backoffice_menu');
		$backofficeMenuOrder->setLabel('Backoffice Menu Order');
		
		$backofficeMenuName = new Zend_Form_Element_Text('name_backoffice_menu');
		$backofficeMenuName->setLabel('Backoffice Menu Name');
		
		$backofficeMenuLink = new Zend_Form_Element_Text('link_backoffice_menu'); 
		$backofficeMenuLink->setLabel('Backoffice Menu Link');
		
		$backofficeMenuLevel = new Zend_Form_Element_Text('level_backoffice_menu'); 
		$backofficeMenuLevel->setLabel('Backoffice Menu Level');
		
		$backofficeMenuIcon = new Zend_Form_Element_Text('icon_backoffice_menu'); 
		$backofficeMenuIcon->setLabel('Backoffice Menu Icon');
		
		$submit = new Zend_Form_Element_Submit('submit');
        $submit->setAttrib('id', 'submitbutton');

        $this->addElements(array($backofficeMenuID,$backofficeMenuParentID,$backofficeMenuOrder,$backofficeMenuName,$backofficeMenuLink,$backofficeMenuLevel,$backofficeMenuIcon,$submit));
		}
	}